package org.testfire.realm.servlet;

/**
 * Created by IntelliJ IDEA.
 * User: granum
 * Date: Aug 28, 2007
 * Time: 8:27:16 AM
 *
 *
 * An Entity (or POJO) which implements JSONEntityIF will return a JSON string representing the object on the call
 * to marshal. A few rules:
 *
 * The JSON Object returned form the marshal() method will look something like:
 * -script-
 * { accessorName: 'value', accessorName2: 42  }
 * -/script-
 * Where accessorName represents a field with a public getter and setter (getX, isX, setX).  
 */
public interface JSONEntityIF
{
	String getJSONString();
	void setJSONString(String json);

}
